import instance from "@/utils/request";

//登录接口
export const userLogin = (data) => {
    return instance.post('/api/userlogin', data)
}

//注册接口
export const userRegister = (data) => {
    return instance.post('/api/add', data)
}

//修改密码接口
export const userUpdate = (data) => {
    return instance.put('/api/updatePassword', data)
}